package model;

import java.net.InetAddress;


/**
 * Saves remote user informations into the model
 * 
 * <p>
 * <ul>
 * <li>Project: 		ChatSystemG3</li>
 * <li>Called by: 		model.*</li>
 * </ul>
 * </p>
 * 
 * @author COMBES Nicolas - LECHANTRE Arnaud
 * @see User
 */
public class RemoteUser extends User {

	/**
	 * Ip address of remote user
	 */
	private InetAddress ipAddress;
	
	/**
	 * construct
	 * @param name
	 * @param ipAddress
	 */
	public RemoteUser(String name, InetAddress ipAddress) {
		super(name);
		this.ipAddress = ipAddress;
	}
	
	/**
	 * getIpAddress
	 * @return ip address of remote user
	 */
	public InetAddress getIpAddress() {
		return ipAddress;
	}
	
	/**
	 * setIpAddress; Saves ip address of remote user
	 * @param ipAddress : inet address of the user
	 */
	public void setIpAddress(InetAddress ipAddress) {
		this.ipAddress = ipAddress;
	}

}
